cmake_minimum_required(VERSION 2.6)
project(rpitda)

set (
    SOURCES
    main.cpp
    path/pathFinding.cpp
    path/pathNode.cpp
    common/commonFunc.cpp
    towers/tower.cpp
    player/player.cpp
    units/unit.cpp
    units/unit1.cpp
    mouse/mouse.cpp
    missles/missle.cpp
    gui/gui.cpp
    common/wave.cpp
    units/unit2.cpp
    units/unit3.cpp
    towers/slowtower.cpp
    common/ptrContainer.cpp
    towers/fasttower.cpp
    particle/particle.cpp
    particle/textparticle.cpp
    states/basestate.cpp
    states/menustate.cpp
    states/playstate.cpp
    states/pausestate.cpp
    states/statewrapper.cpp
    states/stateincludes.h
)
include(UseDoxygen OPTIONAL)
find_package(SDL REQUIRED)
find_package(SDL_image REQUIRED)
find_package(SDL_mixer REQUIRED)
find_package(SDL_ttf REQUIRED)
find_package(OpenGL REQUIRED)
include_directories(${CMAKE_CURRENT_BINARY_DIR} ./path ./towers ./units ./mouse ./missles ./player ./gui ./common ./particle ${OPENGL_INCLUDE_DIR} ${SDL_INCLUDE_DIR})
add_executable (rpitda WIN32 MACOSX_BUNDLE ${SOURCES})
TARGET_LINK_LIBRARIES(rpitda ${OPENGL_LIBRARIES} ${SDL_LIBRARY} ${SDLIMAGE_LIBRARY} ${SDLTTF_LIBRARY} ${SDLMIXER_LIBRARY})
